<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 字符串转数组
          let str = 'String';
        //   let arr = str.split('');
          let arr = Array.from(str)
          console.log(arr);
    </script>
</head>
<body> 
    <ul>
        <li>123</li>
        <li>345</li>
        <li>567</li>
        <li>678</li>
    </ul>
    
</body>
</html>